package com.two.yue;

/*public class test_2_23 {
    public static void main(String[] args)
    {
        System.out.println("第一次！");
    }
}*/

// 快速main函数  行上输入 “main”
// 快速输出程序   行上输入 “sout“

//  *******读       音*************
//怕步累克 克拉死  类名字
/*public class test_2_23 {
    //怕步累克 死达逮克 误A得   si 俊
    public static void main(String[] args){
        // C斯等 傲特
        System.out.println("hehehe");

    }
}*/

//7-4 重要的话说三遍 (5 分)
/*public class Main {
    public static void main(String[] args){
        System.out.println("I'm gonna WIN!");
        System.out.println("I'm gonna WIN!");
        System.out.println("I'm gonna WIN!");
    }


}*/

//7-5 输出带框文字 (5 分)
/*
public class Main {
    public static void main(String[] args)
    {
        System.out.println("************");
        System.out.println("  Welcome");
        System.out.println("************");

    }


}*/

//7-8 温度转换 (10 分)
/*
public class test_2_23{
    public static void main(String[] args)
    {
        int fahr = 150;
        int C ;
        C = 5 * (fahr - 32)/9;
        System.out.printf("fahr = 150, celsius = %d",C);

    }

}*/

//7-9 计算华氏温度 (10 分)
/*
public class Main{
    public static void main(String[] args)
    {
        int c = 26;
        int f = 0;
        f = 9 * c / 5 + 32;
        System.out.printf("celsius = 26, fahr = %d",f);
    }

}*/

//7-10 计算物体自由下落的距离 (10 分)
/*
public class Main{
    public static void main(String[] args)
    {
        int t = 3,g = 10;
        double h = 0;
        h = 0.5*t*t*g;
        System.out.printf("height = %.2f",h);
    }

}*/

//7-11 计算平均分 (10 分)
/*
public class Main{
    public static void main(String[] args)
    {
        System.out.printf("math = 87, eng = 72, comp = 93, average = %d",(87 + 72 + 93) / 3);
    }

}*/

//7-12 将x的平方赋值给y (10 分)
/*
public class test_2_23{
    public static void main(String[] args)
    {
        int x = 3,y;
        y = x * x;
        System.out.println(y+" = "+x+" * "+x);
        System.out.print(x+" * "+x+" = "+y);
    }

}*/ //输出的时候，如果想一个字符串后面跟 变量 或者在字符串之前可以用 + 加号.

//7-13 整数152的各位数字 (10 分)
/*public class Main{
    public static void main(String[] args)
    {
        int x = 152,ge,shi,bai;
        ge = x % 10;
        shi = x / 10 % 10;
        bai = x / 100 % 10;
        System.out.println(152 + " = " + ge + " + " + shi + "*10" + " + " + bai+"*100");
    }
}*/

//7-2 后天 (5 分)
/*
import java.util.Scanner;
public class Main{
    public static void main(String[] args)
    {
        int d,t;
        Scanner inn = new Scanner(System.in);
        d = inn.nextInt();
        d = d + 2;
        d = d % 7;
        if (d == 0) {
            System.out.println("7");
        }
        else
            System.out.println(d);
    }
}*/
